package com.smalltao.sso.dao;

import com.smalltao.sso.entity.RolePermission;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author smallTao.liu
 * @version V1.0
 * @description
 * @date 2018/11/19 17:31
 */
@Repository
public interface RolePermissionRepository extends JpaRepository<RolePermission, String> {

    /**
     * 根据角色id获取权限
     *
     * @param roleUid
     * @return
     */
    List<RolePermission> findAllByRoleUid(String roleUid);

}
